package com.example.sharding.enerty;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import com.example.sharding.dict.Dict;
import com.example.sharding.utils.BaseVo;
import lombok.*;

/**
 * @program: test_demo
 * @description: 测试数据字典转化学生表
 * @author: yanghua
 * @create: 2021-11-01 11:45
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TAnnotationStudent extends BaseVo {

    @TableId(type = IdType.NONE)
    private Long id;
    private String name;
    @Dict(dictDataSource = "stu_level")
    private String stuLevel;

    @TableField(exist = false)
    private String stuLevelName;

    @Dict(dictDataSource = "stu_english",dictText = "stuEnglishDictText")
    private String englishLevel;

    @TableField(exist = false)
    private String stuEnglishDictText;

    @Dict(dictDataSource = "stu_hobby")
    private String stuHobby;
    @TableField(exist = false)
    private String stuHobbyName;

}
